package corej.course.basic;

/**
 * 从命令行获得两个int的输入，返回两数相加的结果
 */
public class TestArgument {
    static int a = 20;

    public static void main(String[] args) {

        System.out.println(a);

        int i = Integer.parseInt(args[0]);
        int j = Integer.parseInt(args[1]);

        System.out.println(add(i, j));
    }

    static int add(int m, int n) {
        return m + n;
    }
}